package com.geline.mybatisplus.annotation;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface QueryModel {

    //表名，用于获取BaseMapper
    String table() default "";

    //查询字段，如：id, parent_id, ancestors
    String sqlSelect() default "";

    //连表语句，如：t_user u LEFT JOIN t_data d ON u.id = d.user_id
    String from() default "";
}
